import request from "@/utils/request";

// 获取用户列表
export const getUserList = (params) => request.get("/biz/usr/list", { params });

// 新增用户
export const addUser = (data) => request.post("/biz/usr", data);

// 编辑用户
export const editUser = (data) => request.put("/biz/usr", data);

// 删除用户
export const delUser = (ids) => request.delete("/biz/usr/" + ids);

// 上传图片
export const uploadFile = (formData) =>
  request.post("/biz/usr/upload", formData, {
    timeout: 60000 * 10,
  });

